package cn.hchaojie.javase.day01.exercise;

import org.junit.Test;

public class Ex3 {
	public static void main(String[] args) {
		// short s = (short) (Math.pow(2, 15) - 1);
		// short s = (1 << 15) - 1;
		
		short s = Short.MAX_VALUE;
		
		System.out.println(s);
	}
	
	@Test
	public void test1() {
		int a = 1, b = 1;
		boolean c = (a == 1 && (++b == 2));
		System.out.println(c);					// ①
		System.out.println(b);
	}
}
